<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript">
	function Person(name, sex){
		this.name = name;
		this.sex = sex;
	}
	Person.prototype.showName = function (){
		alert(this.name);
	}
	Person.prototype.showSex = function (){
		alert(this.sex);
	}

	var p1 = new Person('mo','man');
	var p2 = new Person('Mo','Man');

	p1.showName()
	p1.showSex()
	p2.showName()
	p2.showSex()
	alert(p1.showSex==p2.showSex)
	</script>
</head>
<body>
	
</body>
</html>